package cn.com.git.admin.dao;

import cn.com.git.admin.dao.model.SysRole;
import cn.com.git.admin.service.query.SysRoleListQuery;

import java.util.List;

/**
  * SysRoleDAO接口
  * @author zhangzhenfu
  * @Description
  * @date 2020/5/18
*/
public interface SysRoleDAO {

    SysRole selectById(Integer id);

    SysRole selectOne(SysRoleListQuery query);

    int countLimit(SysRoleListQuery query);

    List<SysRole> selectList(SysRoleListQuery query);

    Integer insertOne(SysRole record);

    List<SysRole> insertList(List<SysRole> list);

    Integer updateOne(SysRole record);

    Integer updateLimit(SysRole record, SysRoleListQuery query);

    Integer deleteOne(Integer id);

    Integer deleteLimit(SysRoleListQuery query);
}